﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="MVCClubSite.Web.Views.Locations.Edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="contentblock">
        <h2>
            <%= ViewData.Model.Location.Title %></h2>
        <% using (Html.BeginForm("Update", "Locations", FormMethod.Post))
           { %>
        <table>
            <tr>
                <td>
                    <%= Html.Label("title", "Location Title:") %>
                </td>
                <td>
                    <%= Html.TextBox("title", ViewData.Model.Location.Title, new{ size = 80 } ) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("description", "Description:") %>
                </td>
                <td>
                    <%= Html.TextArea("description", ViewData.Model.Location.Description, 6, 80, null) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("url", "Url:") %>
                </td>
                <td>
                    <%= Html.TextBox("url", ViewData.Model.Location.Url, new{ size = 80 } ) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("address", "Address:") %>
                </td>
                <td>
                    <%= Html.TextBox("address", ViewData.Model.Location.Address, new{ size = 80 } ) %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("imageID", "Image:") %>
                </td>
                <td>
                    <%= Html.TextBox("imageID", ViewData.Model.Location.ImageID, new{ size = 20 } ) %>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" value="Save" id="saveButton" />
                </td>
            </tr>
        </table>
        <% } %>
    </div>

    <script type="text/javascript" src="<%=AppHelper.JavascriptUrl("tinymce/tiny_mce.js") %>"></script>

    <script type="text/javascript" src="<%=AppHelper.JavascriptUrl("tinymce/advanced_config.js") %>"></script>

</asp:Content>
